home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / ibits.z / ibits
Encoding:
Text File  |  1998-10-30  |  1.7 KB  |  48 lines

  1. IBITS(3I)                                              Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      IIBBIITTSS - Extracts a sequence of bits
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IIBBIITTSS (([II==]_i,, [PPOOSS==]_p_o_s,, [LLEENN==]_l_e_n))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, and IRIX systems
  12.  
  13. SSTTAANNDDAARRDDSS
  14.      Fortran 90
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      The IIBBIITTSS intrinsic function extracts a sequence of bits.  It accepts
  18.      the following arguments:
  19.  
  20.      _i    Must be of type integer.
  21.  
  22.      _p_o_s  Must be of type integer.  It must be nonnegative and _p_o_s + _l_e_n
  23.           must be less than or equal to BBIITT__SSIIZZEE (_i).
  24.  
  25.      _l_e_n  Must be of type integer and nonnegative.
  26.  
  27.      IIBBIITTSS is an elemental function.  The name of this intrinsic cannot be
  28.      passed as an argument.
  29.  
  30. RREETTUURRNN VVAALLUUEESS
  31.      The result type and type parameter are the same as _i.  The result has
  32.      the value of the sequence of _l_e_n bits in _i beginning at bit _p_o_s
  33.      right-adjusted and with all other bits zero.  The bit model defines
  34.      the model for the interpretation of an integer value as a sequence of
  35.      bits.  For more information on the bit model, see the MMOODDEELLSS(3I) man
  36.      page.
  37.  
  38. EEXXAAMMPPLLEESS
  39.      IIBBIITTSS((1144,, 11,, 33)) has the value 7.  In this example, the bits are
  40.      numbered from right to left, so they are extracted from right to left.
  41.  
  42. SSEEEE AALLSSOO
  43.      MMOODDEELLSS(3I)
  44.  
  45.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  46.      printed version of this man page.
  47.  
  48.